home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / security / Watcher / build_cmd.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-07-26  |  574 b   |  33 lines

  1. /*
  2.    build_cmd: build one command structure from the pieces provided.
  3.  
  4.    Kenneth Ingham
  5.  
  6.    Copyright (C) 1988 The University of New Mexico
  7. */
  8.  
  9. #include "defs.h"
  10. #include "y.tab.h"
  11.  
  12. struct cmd_st *
  13. build_cmd(pipeline, alias, out_fmt, change_fmt)
  14. char *alias, *pipeline;
  15. struct out_fmt_st *out_fmt;
  16. struct change_fmt_st *change_fmt;
  17. {
  18.     extern struct out_fmt_st *key;
  19.     struct cmd_st *p;
  20.  
  21.     p = allocate(struct cmd_st);
  22.  
  23.     p->pipeline = pipeline;
  24.     p->alias = alias;
  25.     p->change_fmt = change_fmt;
  26.     p->next = NULL;
  27.     p->out_fmt = out_fmt;
  28.     p->key = key;
  29.     key = NULL;
  30.  
  31.     return p;
  32. }
  33.